Remove unused import, and unused class TwistedAdapter. Mark one variable as
authoremellor@ewan <emellor@ewan>
Sat, 17 Sep 2005 09:29:33 +0000 (10:29 +0100)
committeremellor@ewan <emellor@ewan>
Sat, 17 Sep 2005 09:29:33 +0000 (10:29 +0100)
unused.

Signed-off-by: Ewan Mellor<ewan@xensource.com>
tools/python/xen/sv/Main.py

index b6772c2509c683ed04cd929189c17d0404297d31..ea62af11ea130d30f3c9ca3f6ace0d68ebfc72bc 100755 (executable)
@@ -1,5 +1,4 @@
 
-from xen.sv.HTMLBase import HTMLBase
 from xen.sv.NodeInfo import NodeInfo
 from xen.sv.DomInfo  import DomInfo
 from xen.sv.CreateDomain import CreateDomain
@@ -33,15 +32,8 @@ class Args:
             result.append( (key, self.fieldStorage.getlist( key ) ) )
         return result
                                                                                                                                                             
-class TwistedAdapter:
-    def __init__( self, req ):
-        self.args = Args( req )
-        self.uri = req.unparsed_uri
-        self.url = req.uri
-        self.write = req.write
-
 # This is the Main class
-# It peices together all the modules
+# It pieces together all the modules
 
 class Main:
     def __init__( self ):
@@ -61,7 +53,7 @@ class Main:
             self.init_modules( request )
             self.init_done = True
             
-        for moduleName, module in self.modules.iteritems():
+        for _, module in self.modules.iteritems():
             module.write_MENU( request )
             request.write( "\n" )